package io.github.talelin.latticy.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import io.github.talelin.latticy.dto.putaway.PutAwayDTO;
import io.github.talelin.latticy.dto.putaway.PutAwayPageDTO;
import io.github.talelin.latticy.dto.putaway.PutAwaySkuDTO;
import io.github.talelin.latticy.model.PutAwayDO;
import io.github.talelin.latticy.vo.PutAwayVO;

import java.util.List;

/**
 * <p>
 * 上架表 服务类
 * </p>
 *
 * @author generator@wulongbo
 * @since 2022-06-29
 */
public interface PutAwayService extends IService<PutAwayDO> {
    void putAwayInfo(PutAwayDTO putawayDto);



    /**
     * 获取库位下所有的sku
     * @param ids
     * @return
     */
    List<String> getSkuByLocationId(List<Integer> ids);

    IPage<PutAwayVO> getPutAwayPage(PutAwayPageDTO putAwayDTO);


    List<PutAwayDO> getPutAwayList(PutAwayPageDTO putAwayDTO);

    void resizeStockNum(PutAwaySkuDTO putAwayDTO);

    void moveLocation(PutAwaySkuDTO putAwayDTO);

    void resizeLibraryAge(PutAwaySkuDTO putAwayDTO);
}
